<template>
  <div id="app">
    <keep-alive include="Home">
      <router-view class="body"></router-view>
    </keep-alive>
    <router-view name="tabbar" class="footer"></router-view>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="less" scoped>
#app {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  .body {
    flex: 1;
    overflow: hidden;
  }

  .footer {
    height: 50px;
  }
}
</style>
